var xhr = createRequest();

function getData(dataSource, divID, aName, aPwd) {
	if (xhr) {
		var place = document.getElementById(divID);
		var url = dataSource + "?name=" + aName + "&pwd=" + aPwd;
		xhr.open("GET", url, true);
		xhr.onreadystatechange = function() {
			//alert(xhr.readyState);
			if (xhr.readyState == 4 && xhr.status == 200) {
				place.innerHTML = xhr.responseText;
			}
		}
		xhr.send(null);
	}
}
